#ifndef HISTORY_H
#define HISTORY_H

#include <QDialog>
#include <QJsonArray>
#include <QJsonObject>
#include <QByteArray>
#include <QJsonDocument>
#include "qcustomplot.h"
namespace Ui {
class History;
}

class History : public QDialog
{
    Q_OBJECT

public:
    explicit History(QWidget *parent = 0);
    ~History();

    QString getTitle() const;
    void setTitle(const QString &value);

    int getKey() const;
    void setKey(int value);

private:
    Ui::History *ui;
    QString title;
    QCustomPlot *customPlot;
    int key;
    void onButtonClicked();
private slots:
    void dataUpSlot(QByteArray);
    void dialogClose();
};

#endif // HISTORY_H
